<template>
  <div class="fyhh">
    <div class="quanshang"></div>
    <div class="quan" @click="$router.push('/kanlie')">
      <span>全民砍价</span>
      <van-icon name="arrow"></van-icon>
    </div>
    <div class="kan" @click="$router.push('/kanlie')" v-for="(item,index) in kanjiaList" :key="index">
      <img :src="item.pic" alt />
      <div class="room">
        <div class="toom">
          <p v-html="item.name"></p>
          <p>{{item.characteristic}}</p>
        </div>
        <ul>
          <li>
            <p class="pp">￥{{ item.minPrice }}</p>
            <p>底价</p>
          </li>
          <li>
            <p>{{ item.originalPrice }}</p>
            <p>原价</p>
          </li>
          <li>
            <p>{{ item.stores }}</p>
            <p>限量</p>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    };
  },
  props: ["kanjiaList"],
  created() {},
  mounted() {
    
  },
  methods: {

  },
};
</script>

<style scoped lang="less">
.quan {
  width: 100%;
  line-height: 0.95rem;
  font-size: 0.36rem;
  text-align: center;
}
.quanshang {
  width: 100%;
  height: 0.2rem;
  background-color: #f4f4f4;
  margin-top: 0.1rem;
}
.kan {
  width: 100%;
  height: 2.7rem;
  border-top: 0.02rem solid #cccccc;
  display: flex;

  img {
    width: 2.24rem;
    height: 2.28rem;
    margin: 0.14rem 0.22rem 0.14rem 0.14rem;
  }
  .room {
    .toom {
      width: 4.2rem;
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 0.64rem;
      :nth-child(1) {
        font-size: 0.24rem;
        // color: red;
      }
      :nth-child(2) {
        font-size: 0.18rem;
        color: #cccccc;
      }
      p {
        margin-top: 0.22rem;
      }
    }
    ul {
      width: 3.51rem;
      display: flex;
      justify-content: space-between;
      li {
        p {
          margin-bottom: 0.2rem;
          font-size: 0.28rem;
        }
        .pp{
          color: red;
        }
      }
    }
  }
}
</style>
